package com.aabte.design.pattern.behavioral.interpreter;

public class NumberInterpreter implements Interpreter {

    private int number;

    public NumberInterpreter(int number){
        this.number = number;
    }
    public NumberInterpreter(String numberStr){
        this.number = Integer.parseInt(numberStr);
    }

    @Override
    public int interpret() {
        return this.number;
    }
}
